package reflect;

import java.lang.reflect.Method;

public class reflectDemo1 {
    public static void main(String[] args){
        System.out.println(new Person());
        Class stringClass = String.class;
        System.out.println(stringClass.getName());
        System.out.println(stringClass.getSimpleName());
        Method[] methods = stringClass.getMethods();
        for (Method method : methods) {
            System.out.println(method.getName());
        }
        System.out.println(stringClass.getPackage());


    }
}
